<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style type='text/css'>
		.float-left{float: left;}
        #content_holder{float: left; }
        .example{float: left;width: 100%;padding-top:10px;padding-bottom:10px;text-align: center; margin-top:5px;}
        .example p{text-indent: 2em;}
        .example h3{text-align: center;}
        .example .operator{width: 100%;float: center ;padding-top:10px;padding-bottom:10px;text-align: center;margin-top:5px;}
        .example-1{background: Black;color: Black;}
        .example-1 img{display:inline-block;width: 300px;float: left;margin-left: 10px;margin-right: 15px;padding: 8px;}
		.example-2{color: Black;}
		a {color:black;text-decoration:underline;}

    </style>
<!--[if lt IE 9]>
        <script src="http://www.jq22.com/demo/jQueryPrint201703012350/js/vendor/html5-3.6-respond-1.1.0.min.js"></script>
    <![endif]-->

<style type="text/css" media="print">
.noprint{display : none }
</style>

<body>

<div id="ele2" class="example example-2 operator">
<!--startprint1-->
<p align="center" ><h2>某某XX公司收文登记表</h2><strong> </strong></p>
<div align="center" >
  <table width="800" height="968" border="1" align="center" cellspacing="0" >
    <tr height="25">
      <td width="122" valign="center"  height="45" ><p align="center" >收文编号</p>      </td>
      <td width="164" valign="center" >&nbsp;{$rs.docno}</td>
      <td width="82" valign="center" ><p align="center" >文件号 </p></td>
      <td width="133" valign="center" >&nbsp;{$rs.doccode}</td>
      <td width="106" valign="center" ><p >收文日期 </p></td>
      <td width="117" valign="center" >&nbsp;{$rs.docdate|format_datetime='Y-m-d'}</td>
    </tr>
    <tr height="25">
      <td width="122" height="45"><p align="center" >紧急程度</p></td>
      <td width="164" valign="center" >&nbsp;{$rs.jinji}</td>
      <td width="82" valign="center" ><p align="center" >密  级 </p></td>
      <td width="133" valign="center" >&nbsp;{$rs.classes}</td>
      <td width="106" valign="center" ><p >文件日期 </p></td>
      <td width="117" valign="center" >&nbsp;{$rs.issuedate|format_datetime='Y-m-d'}</td>
    </tr>
    <tr height="25">
      <td width="122" height="45"  >
      <p align="center" >来文单位 </p>      </td>
      <td valign="center" colspan="5" >&nbsp;{$rs.docunit}</td>
    </tr>
    <tr height="25">
      <td width="122" height="45" valign="center" ><p align="center" >标   题</p></td>
      <td valign="center" colspan="5" >&nbsp;{$rs.title}</td>
    </tr>
    <tr height="25">
      <td width="122" height="45" valign="center" ><p align="center" >主&#160;题&#160;词 </p></td>
      <td  colspan="5" valign="center">&nbsp;{$rs.keywords}</td>
    </tr>
    <tr >
      <td width="122" height="45" valign="center" ><p align="center" >备    注 </p></td>
      <td colspan="5" valign="center" >&nbsp;{$rs.remark} </td>
    </tr>
    <tr >
      <td width="122" height="120" valign="center" ><p align="center" >拟办意见</p></td>
      <td valign="center" colspan="5" >
	  {foreach $flow_list as $key=>$vo}
		  {if $vo['types'] == 'doccharger'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  		  
		  {if $vo.files !=''}<img src="{$vo.files}" class='imported' height='30' width='70'></img>{/if}
		  ({$vo.creat_at|format_datetime='Y-m-d'})<br>
		  {/if}
	  {/foreach}
      </td>
    </tr>
    <tr >
      <td width="122" height="120" valign="center" ><p align="center" >领导批示 </p></td>
      <td valign="center" colspan="5" >
	  {foreach $flow_list as $key=>$vo}
		  {if $vo['types'] == 'docleader'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  		  
		  {if $vo.files !=''}<img src="{$vo.files}" class='imported' height='30' width='70'></img>{/if}
		  ({$vo.creat_at|format_datetime='Y-m-d'})<br>
		  {/if}
	  {/foreach}
		</td>
    </tr>
    <tr >
      <td width="122" height="120" valign="center" ><p align="center" >传阅情况 </p></td>
      <td valign="center" colspan="5" >	  
	  {foreach $flow_list as $key=>$vo}
		  {if $vo['types'] == 'docread'}
		  &nbsp; {$vo.username}:{$vo.info}
		  {if $vo.files !=''}<img src="{$vo.files}" class='imported' height='30' width='70'></img>{/if}
		  ({$vo.creat_at|format_datetime='Y-m-d'})<br>
		  {/if}
	  {/foreach}
	  
	  </td>
    </tr>
    <tr >
      <td width="122" height="120" valign="center" ><p align="center" >办理情况 </p></td>
      <td valign="center" colspan="5" >
	  
	  {foreach $flow_list as $key=>$vo}
		  {if $vo['types'] == 'docdo'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  
		  {if $vo.files !=''}<img src="{$vo.files}" class='imported' height='30' width='70'></img>{/if}
		  ({$vo.creat_at|format_datetime='Y-m-d'})<br>
		  {/if}
	  {/foreach}
	  
	  </td>
    </tr>
	
    <tr >
      <td width="122" height="60" valign="center" ><p align="center" >文件列表 </p></td>
      <td valign="top" colspan="5" >
	  
	  {foreach $file_list as $key=>$vo}

		  &nbsp; <a href="{$vo.fileurl}" target="_blank">{$vo.original_name}</a>&nbsp;&nbsp;({$vo.filesize|format_size})<br>

	  {/foreach}
	  
	  </td>
    </tr>
	
	
  </table>
</div>
<p align="center">打印人：{:session('admin_user.nickname')} &nbsp; &nbsp; &nbsp; &nbsp;  打印日期：{:date('Y年m月d日',time());}  </p>

<!--endprint1-->

<div class="operator">
<button class="print-link no-print">
打印页面
</button>
</div>
</div>



<script src="__ROOT__/static/jquery-1.10.2.js"></script>
<script src="__ROOT__/static/jQuery.print.js"></script>
<script type='text/javascript'>
        //<![CDATA[
        $(function() {
            $("#ele2").find('.print-link').on('click', function() {
                //Print ele2 with default options
                $.print("#ele2");
            });
            $("#ele4").find('button').on('click', function() {
                //Print ele4 with custom options
                $("#ele4").print({
                    //Use Global styles
                    globalStyles : false,
                    //Add link with attrbute media=print
                    mediaPrint : false,
                    //Custom stylesheet
                    stylesheet : "http://fonts.useso.com/css?family=Inconsolata",
                    //Print in a hidden iframe
                    iframe : false,
                    //Don't print this
                    noPrintSelector : ".avoid-this",
                    //Add this at top
                    prepend : "Hello World!!!<br/>",
                    //Add this on bottom
                    append : "<br/>Buh Bye!"
                });
            });
            // Fork https://github.com/sathvikp/jQuery.print for the full list of options
        });
        //]]>
    </script>
</body>
</html>
